﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FindNearTask.ascx.cs" Inherits="UserControls_FindNearTask" %>

<%@ Register assembly="ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" namespace="ESRI.ArcGIS.ADF.Web.UI.WebControls" tagprefix="esri" %>
<asp:Panel runat="server" ID="container" 
    BorderColor="#B0B0B0">
    <table>
    <tr>
        <td>
            Tìm kiếm theo vùng</td>
    </tr>
    <tr>
        <td>                        
            <esri:ToolBar runat="server" ID="toolbar" BuddyControlType="Map" 
                Group="ctl00_toolbar_Group" Height="32px" 
                ToolbarItemDefaultStyle-BackColor="White" 
                ToolbarItemDefaultStyle-Font-Names="Arial" 
                ToolbarItemDefaultStyle-Font-Size="Smaller" 
                ToolbarItemDisabledStyle-BackColor="White" 
                ToolbarItemDisabledStyle-Font-Names="Arial" 
                ToolbarItemDisabledStyle-Font-Size="Smaller" 
                ToolbarItemDisabledStyle-ForeColor="Gray" 
                ToolbarItemHoverStyle-BackColor="White" ToolbarItemHoverStyle-Font-Bold="True" 
                ToolbarItemHoverStyle-Font-Italic="True" 
                ToolbarItemHoverStyle-Font-Names="Arial" 
                ToolbarItemHoverStyle-Font-Size="Smaller" 
                ToolbarItemSelectedStyle-BackColor="White" 
                ToolbarItemSelectedStyle-Font-Bold="True" 
                ToolbarItemSelectedStyle-Font-Names="Arial" 
                ToolbarItemSelectedStyle-Font-Size="Smaller" ToolbarStyle="ImageOnly" 
                WebResourceLocation="/aspnet_client/ESRI/WebADF/" Width="204px" 
                CurrentTool="SearchAreaByPolygon">
                <ToolbarItems>
                    <esri:Tool ClientAction="Point" DefaultImage="~/FindNearTask/images/point.gif" 
                        HoverImage="~/FindNearTask/images/point_hover.gif" JavaScriptFile="" 
                        Name="SearchAreaByPoint" 
                        SelectedImage="~/FindNearTask/images/point_selected.gif" 
                        ServerActionAssembly="App_Code" 
                        ServerActionClass="SearchAreaByPoint" 
                        ToolTip="Vẽ một điểm để tìm" />
                    <esri:Tool ClientAction="Polyline" DefaultImage="~/FindNearTask/images/polyline.gif" 
                        HoverImage="~/FindNearTask/images/polyline_hover.gif" JavaScriptFile="" 
                        Name="SearchAreaByLine" 
                        SelectedImage="~/FindNearTask/images/polyline_selected.gif" 
                        ServerActionAssembly="App_Code" 
                        ServerActionClass="SearchAreaByPolyline" 
                        ToolTip="Vẽ một đường để tìm" />
                    <esri:Tool ClientAction="Polygon" DefaultImage="~/FindNearTask/images/polygon.gif" 
                        HoverImage="~/FindNearTask/images/polygon_hover.gif" JavaScriptFile="" 
                        Name="SearchAreaByPolygon" 
                        SelectedImage="~/FindNearTask/images/polygon_selected.gif" 
                        ServerActionAssembly="App_Code" 
                        ServerActionClass="SearchAreaByPolygon" 
                        ToolTip="Vẽ một vùng để tìm" />                   
                    <esri:Tool ClientAction="DragRectangle" DefaultImage="~/FindNearTask/images/selectFeature.gif" 
                        HoverImage="~/FindNearTask/images/selectFeature_hover.gif" JavaScriptFile="" 
                        Name="SearchAreaBySelection" 
                        SelectedImage="~/FindNearTask/images/selectFeature_selected.gif" 
                        ServerActionAssembly="App_Code" 
                        ServerActionClass="SearchAreaBySelection" 
                        ToolTip="Chọn một features để tìm" />                    
                    <esri:Command ClientAction="" 
                        DefaultImage="~/FindNearTask/images/clearInput.gif" 
                        HoverImage="~/FindNearTask/images/clearInput_hover.gif" 
                        JavaScriptFile="" Name="ClearInput" 
                        SelectedImage="~/FindNearTask/images/clearInput_selected.gif" 
                        ServerActionAssembly="App_Code" 
                        ServerActionClass="ClearInput" 
                        ToolTip="Xóa khu vực tìm kiếm và bộ đệm từ bản đồ" />
                </ToolbarItems>
                <BuddyControls>
                    <esri:BuddyControl Name="Map1" />
                </BuddyControls>
            </esri:ToolBar>
        </td>
    </tr>
    <tr>
        <td>
            <div id="divSelectionLayer" runat="server" style="display:none;">
                <asp:Label ID="Literal2" runat="server" Text="Chọn lớp:" Font-Bold="true" />            
                <asp:DropDownList runat="server" ID="ddlSelectionLayers" />
            </div>
        </td>
    </tr>
    <tr>
        <td>            
            <asp:CheckBox ID="chkAddToSelection" runat="server" 
                Text="Thêm mới vùng tìm kiếm" Checked="true" />
        </td>
    </tr>    
    <tr>
        <td>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblDistance" Font-Bold="True" runat="server" 
                            Text="Khoảng cách tìm:" />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtDistance" Text="100" Width="70px" />
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlUnits">
                            <asp:ListItem>Inches</asp:ListItem>
                            <asp:ListItem>Feet</asp:ListItem>
                            <asp:ListItem>Yards</asp:ListItem>
                            <asp:ListItem>Miles</asp:ListItem>
                            <asp:ListItem>NauticalMiles</asp:ListItem>
                            <asp:ListItem>Millimeters</asp:ListItem>
                            <asp:ListItem>Centimeters</asp:ListItem>
                            <asp:ListItem>Meters</asp:ListItem>
                            <asp:ListItem Selected="True">Kilometers</asp:ListItem>
                            <asp:ListItem>Decimeters</asp:ListItem>            
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            
        </td>
    </tr>
    <tr>
        <td> 
            <asp:Label ID="lblSearchLayer" runat="server" Font-Bold="True" 
                Text="Lớp tìm kiếm:" />            
             <asp:DropDownList runat="server" ID="ddlLayers" />
        </td>
    </tr>
    <tr>
        <td style="text-align: center">
            <esri:CallbackButton runat="server" ID="btnDoFind" OnClicked="doFind" 
                Text="Tìm" />
            <div style="display:none">
                <asp:HiddenField runat="server" ID="hdnSearchAreaByTaskResult" Value="false" />
            </div>
        </td>
    </tr>
</table>
</asp:Panel>